home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- var bytesloaded = _root.getBytesLoaded();
- var percentage = bytesloaded / totalbytes;
- _root.LoadingBar.Loaded.Percent.Loaded = int(percentage * 100);
- if(20 < _root.LoadingBar.Loaded.Percent.Loaded and Passe20 != true)
- {
- Passe20 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("20");
- play();
- }
- }
- if(30 < _root.LoadingBar.Loaded.Percent.Loaded and Passe30 != true)
- {
- Passe30 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("30");
- play();
- }
- }
- if(40 < _root.LoadingBar.Loaded.Percent.Loaded and Passe40 != true)
- {
- Passe40 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("40");
- play();
- }
- }
- if(50 < _root.LoadingBar.Loaded.Percent.Loaded and Passe50 != true)
- {
- Passe50 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("50");
- play();
- }
- }
- if(60 < _root.LoadingBar.Loaded.Percent.Loaded and Passe60 != true)
- {
- Passe60 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("60");
- play();
- }
- }
- if(70 < _root.LoadingBar.Loaded.Percent.Loaded and Passe70 != true)
- {
- Passe70 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("70");
- play();
- }
- }
- if(80 < _root.LoadingBar.Loaded.Percent.Loaded and Passe80 != true)
- {
- Passe80 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("80");
- play();
- }
- }
- if(90 < _root.LoadingBar.Loaded.Percent.Loaded and Passe90 != true)
- {
- Passe90 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("90");
- play();
- }
- }
- if(99 < _root.LoadingBar.Loaded.Percent.Loaded and Passe100 != true)
- {
- Passe100 = true;
- tellTarget("_root.LoadingBar")
- {
- gotoAndStop("100");
- play();
- }
- }
- ifFrameLoaded(535)
- {
- if(eval("/:Instru") != true)
- {
- tellTarget("_root.InstructionButton")
- {
- gotoAndStop(2);
- }
- }
- }
- if(100 < _root.LoadingBar.Loaded.Percent.Loaded)
- {
- _root.LoadingBar.Loaded.Percent.Loaded = 100;
- }
- }
-